package com.chaopei.day39.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author Corday 天涯
 * @Date 2022/4/23 21:19
 * 3.多对多关联查询
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Course {
    private  int cno;
    private  String cname;
//    学时
    private int total;
//    学分
    private int credit;
    //一个课程可以由多个学生选
    private List<Stu> stuList;
}
